<?php
header("Content-Type:text/html;charset = utf-8");


$arr =array('桂纶镁','杨佳佳','刘亦菲');
$json = json_encode($arr,JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)."</br>";
echo $json;

$city =array('贵州'=>'贵阳','广东'=>'广州','湖南'=>'长沙');
$json_city =json_encode($city,JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)."</br>";
echo $json_city;

$mix  =array('桂纶镁','杨佳佳','刘亦菲','贵州'=>'贵阳','广东'=>'广州','湖南'=>'长沙');
$json_mix =json_encode($mix,JSON_UNESCAPED_SLASHES |JSON_UNESCAPED_UNICODE)."</br>";
echo $json_mix;

class Person {
   public  $girl ="佳佳";
   public  $relationship="朋友";
   function  run (){
      echo "running man";
   }
}
$pep =new Person();
$json_obj = json_encode($pep,JSON_UNESCAPED_SLASHES |JSON_UNESCAPED_UNICODE);
echo $json_obj;